<?php
namespace Corporate\Model;

class Corporateusers
{
	public $sno;
	public $username;
	public $password;
	
	public function exchangeArray($data)
	{
		$this->sno						= (isset($data['sno']))						? $data['sno']     				: null;
        $this->username 				= (isset($data['username'])) 				? $data['username'] 			: null;
        $this->password  				= (isset($data['password']))  				? $data['password']  			: null;
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}